package com.jiyun.order.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiyun.order.mapper.RegionMapper;
import com.jiyun.order.service.IRegionService;
import com.jiyun.orders.pojo.Region;
import com.jiyun.result.Result;
import com.jiyun.result.ResultCodeEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 地区信息表 服务实现类
 * </p>
 *
 * @author 1823.
 * @since 2025-02-13
 */
@Service
public class RegionServiceImpl extends ServiceImpl<RegionMapper, Region> implements IRegionService {

    @Autowired
    private RegionMapper regionMapper;

//    @Override
//    public List<Region> findByParentCode(String parentCode) {
//        return baseMapper.selectList(new QueryWrapper<Region>().eq("parent_code", parentCode));
//    }
}
